<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

   $router->get('/', 'HomeController@index')->name('admin.home');
  //  $router->resource('/', 'RobotConfigContoller@index');
    $router->resource('robot', RobotConfigContoller::class);
    $router->resource('leads', LeadController::class);
    $router->resource('lead', LeadsController::class);
    $router->resource('customers', CustomerController::class);

    $router->resource('toutiaos', ToutiaoController::class);
    $router->resource('baidu-projects', HrefController::class);//配置
    $router->resource('users', UserController::class);
    $router->resource('user-fenshus', UserFenshuController::class);
    $router->resource('user-fenshu-settings', UserFenshuSettingController::class);

    $router->resource('changfangdi-configs', ChangfangdiController::class);

    $router->resource('agents', AgentController::class);
    $router->resource('wechat-links', WechatLinkController::class);

    $router->resource('luodiye', LuodiyeController::class);

});
